//
//  HHDetailUserModel.h
//  HHChatKit
//
//  Created by Henry on 2021/9/23.
//

#import <Foundation/Foundation.h>
#import "HHSelectUserModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface HHChatDetailTheme : NSObject

/// 图片 高度和宽度一致，默认：60
@property (nonatomic) CGFloat imageHeight;
/// 名称高度，默认：24
@property (nonatomic) CGFloat nameHeight;
/// 间距，默认：18
@property (nonatomic) CGFloat spacing;
/// 更多高度，默认：50
@property (nonatomic) CGFloat moreHeight;
/// 名称字体
@property (nonatomic) UIFont *nameFont;
/// 名称颜色
@property (nonatomic) UIColor *nameColor;

@end

@interface HHDetailUserModel : NSObject

@property (nonatomic, strong) HHChatDetailTheme *theme;

@property (nonatomic, strong) NSMutableArray <HHSelectUserModel *> *dataArray;

@property (nonatomic, strong, readonly) NSMutableArray <HHSelectUserModel *> *displayDataArray;

/// 默认屏幕宽度
@property (nonatomic, assign) CGFloat width;

/// 最大行数：默认4行 0不限制
@property (nonatomic, assign) NSInteger maxRow;



/// 列数，由宽度决定，以及Item
@property (nonatomic, assign, readonly) NSInteger column;

/// 更多
@property (nonatomic, assign, readonly) BOOL more;

/// 高度
@property (nonatomic, assign) CGFloat cellHeight;

/// 添加权限
@property (nonatomic, assign) BOOL addPermission;
/// 删除权限
@property (nonatomic, assign) BOOL deletePermission;

@property (nonatomic, copy) void(^didSelectUser)(HHSelectUserModel *model);
@property (nonatomic, copy) void(^didSelectMore)(NSArray *data);

- (void)setupHeight:(CGFloat)width;

- (instancetype)initWithData:(NSMutableArray *)data;
- (instancetype)initWithData:(NSMutableArray *)data maxRow:(NSInteger)maxRow;

@end

NS_ASSUME_NONNULL_END
